import { createStore } from 'vuex'

export default createStore({
  state: {
    city: ['北京','上海','纽约'],
    myHome: '',
    token: ''
  },
  mutations: {
    setCity(state, city) {
      state.myHome = city;
    },
    setToken(state, token) {
      state.token = token
    }
  },
  actions: {
  },
  modules: {
  }
})
